home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00a.txt
/
000129_icon-group-sender _Tue May 30 12:07:40 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id MAA19353
for icon-group-addresses; Tue, 30 May 2000 12:06:08 -0700 (MST)
Message-Id: <200005301906.MAA19353@baskerville.CS.Arizona.EDU>
From: "F.G. van DORP" <F.G.van.Dorp@digimedia.nl>
X-Newsgroups: comp.lang.icon
Subject: Re: CODE() and @/2
X-Newsreader: Forte Agent 1.7/32.534
Date: Tue, 30 May 2000 18:55:33 GMT
X-Complaints-To: abuse@chello.nl
X-Trace: flipper 959712933 212.187.67.243 (Tue, 30 May 2000 20:55:33 MET DST)
To: icon-group@optima.CS.Arizona.EDU
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
On 26 May 2000 11:38:34 -0400, Steve Wampler <swampler@noao.edu> wrote:
>"F.G. van DORP" wrote:
>>
>...
>> Can somebody please explain the infix @ operator ?
>> The closest I can get is something like: @'s first argument gets pushed
>> onto its second argument's stack before the latter is activated....
>>...
>
>So, each co-expression sees @ as an operator that "invokes" another
>co-expression
>to produce a result. The result can be produced in one of two ways:
>
>(1) Since a co-expression is an expression, and since all expressions in Icon
> produce results, there is an implicit transfer of the result of that
> expression back to the invoking co-expression. This is how most people
> use co-expressions, as in:
>
> nextLabel := create "L" || seq()
>
Thanks for replying.
I tried
nextLabel := create "L" || (1 to 10) || ("foo" @ &source)
write(@nextlabel)
....
and to my very surprise it did act as a regular RETURN (no
ASSEMBLER jargon necessary after all), writing
L1foo
....
Unfortunately results are quite unpredictable: either some aren't
written at all, or Win32 preempts further execution with an "illegal
operation" error.
>